<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"          			
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      >
    <ui:composition template="TaskProLayout.xhtml">
        <ui:define name="content">
            <div class="Post">
            <h:form>   
                <p:dataTable var="student" value="#{userBean.students}" rowKey="#{student.login}"
                             paginator="true" paginatorAlwaysVisible="false" rows="30" 
                             emptyMessage="No students were founded">  
                    <p:column>  
                        <f:facet name="header">  
                            Username
                        </f:facet>  
                        <h:outputText value="#{student.login}">

                        </h:outputText>
                    </p:column>  
                    <p:column>  
                        <f:facet name="header">  
                            Name
                        </f:facet>  
                        <h:outputText value="#{student.name}"></h:outputText>
                    </p:column>  
                    <p:column>  
                        <f:facet name="header">  
                            Surname
                        </f:facet>  
                        <h:outputText value="#{student.surname}"></h:outputText>
                    </p:column>
                    <p:column>  
                        <f:facet name="header">  
                            E-mail
                        </f:facet>  
                        <h:outputText value="#{student.email}"></h:outputText>
                    </p:column>
                    <f:facet name="header">
                        <h:outputText value="Kantors students"/>
                    </f:facet>
                     <f:facet name="footer">
                        <h:outputText value=""/>
                    </f:facet>
                </p:dataTable>  
            </h:form>
            </div>
        </ui:define>
    </ui:composition>
</html>